﻿using QWManage.Logs;
using QWManage.MySqlSync;
using QWManage.Utils;
using System;
using System.Windows.Forms;

namespace QWManage
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                SqlHelper.GetInsertParameters();
                LogMgr.Log("程序启动", "OK");
                //不检查跨线程访问 全局起作用 但不稳定
                Control.CheckForIllegalCrossThreadCalls = false;
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new FrmMain());
            }
            catch (Exception ex)
            {
                LogMgr.Log(ex);
                Common.MessageBoxWarning(ex.Message);
            }
            finally
            {
                LogMgr.Log("程序退出", "OK");
            }
        }
    }
}


